package qingke.hibernate.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "course_select")
public class CourseSelect {

	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "create_time")
	private int createTime;
	@ManyToOne
	@JoinColumn(name = "student_id")
	private Student student;
	@ManyToOne
	@JoinColumn(name = "score_id")
	private Score score;
	@ManyToOne
	@JoinColumn(name = "course_id")
	private Course course;
	@ManyToOne
	@JoinColumn(name = "course_setting_id")
	private CourseSetting courseSetting;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCreateTime() {
		return createTime;
	}
	public void setCreateTime(int createTime) {
		this.createTime = createTime;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public Score getScore() {
		return score;
	}
	public void setScore(Score score) {
		this.score = score;
	}
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}
	public CourseSetting getCourseSetting() {
		return courseSetting;
	}
	public void setCourseSetting(CourseSetting courseSetting) {
		this.courseSetting = courseSetting;
	}
	@Override
	public String toString() {
		return "CourseSelect [id=" + id + ", createTime=" + createTime + "]";
	}

	

}
